<template>
  <button @click="openModal" style="background: red">打开打开</button>
</template>
<script setup lang="ts">
import { useConnectModal } from '@metaicons/web3-wallet-kit/components'

//
const { openConnectModal } = useConnectModal()
// console.log(connectModalRef)

const openModal = () => {

  openConnectModal()
  // connectModalRef.value?.openConnectModal()
}
</script>
